package ${package}.entity;

import java.io.Serializable;
import java.util.Date;
<#if hasBigDecimal?? >
import java.math.BigDecimal;
</#if>

/**
 * ${comments}
 * 
 * @author ${author}
 * @email ${email}
 * @date ${datetime}
 */
public class ${className} implements Serializable {

	private static final long serialVersionUID = 1L;
	
	<#list allColumns as column>
	//${column.comments}
    private ${column.attrType} ${column.attrname};
    </#list>

<#list allColumns as column>
	/**
	 * 设置：${column.comments}
	 */
	public void set${column.attrName}(${column.attrType} ${column.attrname}) {
		<#if column.attrType?? && column.attrType == 'String'>
		this.${column.attrname} = ${column.attrname} == null ? null : ${column.attrname}.trim();
		<#else>
		this.${column.attrname} = ${column.attrname};
		</#if>
	}
	
	/**
	 * 获取：${column.comments}
	 */
	public ${column.attrType} get${column.attrName}() {
		return this.${column.attrname};
	}
</#list>
}
